"use strict";
/**
 * @author zhaojiuyi
 * @date 2022/6/1-9:51
 * @version 1.0.0
 */

import store from '@/store/index';
import {getRequest, postRequest} from './requests/requests';

export default {
  async login(loginData) {
    return await postRequest({
      url: '/user/login',
      params: loginData
    })
  },
  async register(registerData) {
    return await postRequest({
      url: '/user/register',
      params: registerData
    })
  },
  async getVerCode(phoneNumber) {
    return await postRequest({
      url: '/user/verCode',
      params: {
        phoneNumber
      }
    })
  }

}

